package fr.ece.ing4.chatapplication.client;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

/**
 * Created by dudu on 06/04/14.
 */
public class WindowEventHandler extends WindowAdapter {

    private ClientController clientController;

    public WindowEventHandler (ClientController clientController) {
        this.clientController = clientController;
    }
    public void windowClosing(WindowEvent evt) {

        clientController.shutdown();
        System.exit(0);

    }

}
